package a.g;

import a.c.n;
import a.f.c.c;
import a.f.g.k;
import a.f.jd;
import a.f.kb;
import a.f.l.hb;
import a.f.vc;
import a.h.cc;
import a.h.dc;
import a.j.ke;

public class u
  extends h
{
  private static final String q = "ORGANIC_EDGE_ROUTER";
  private static final String r = "MINIMAL_NODE_DISTANCE";
  private static final String s = "USE_BENDS";
  private static final String t = "ROUTE_ONLY_NECESSARY";
  private static final String u = "SELECTION_ONLY";
  private static final String v = "ALLOW_MOVING_NODES";
  private static final String w = "LAYOUT_OPTIONS";
  public static boolean x;
  
  public u()
  {
    super("ORGANIC_EDGE_ROUTER", "Sebastian Mueller", "Routes edges organically");
  }
  
  public dc j()
  {
    hb localhb = new hb();
    dc localdc = new dc(a());
    cc localcc = new cc();
    localcc.a("OptionGroup.title", "LAYOUT_OPTIONS");
    localcc.a(localdc.a("SELECTION_ONLY", false));
    localcc.a(localdc.a("MINIMAL_NODE_DISTANCE", (int)localhb.g(), 10, 300));
    localcc.a(localdc.a("USE_BENDS", localhb.h()));
    if (f.p == 0) {}
    localcc.a(localdc.a("ROUTE_ONLY_NECESSARY", !localhb.i()));
    localcc.a(localdc.a("ALLOW_MOVING_NODES", false));
    return localdc;
  }
  
  protected void n()
  {
    int i = f.p;
    hb localhb = new hb();
    dc localdc = i();
    localhb.d(localdc.e("MINIMAL_NODE_DISTANCE"));
    localhb.b(localdc.g("USE_BENDS"));
    if (i == 0) {}
    localhb.c(!localdc.g("ROUTE_ONLY_NECESSARY"));
    k localk = new k(0.0D);
    vc localvc = localhb.j();
    a.f.u localu = new a.f.u();
    localu.b(localvc);
    if (i == 0)
    {
      if (localhb.h()) {
        localu.b(new kb());
      }
      localu.b(localk);
    }
    jd localjd = new jd();
    if (i == 0)
    {
      if (localdc.g("ALLOW_MOVING_NODES")) {
        localjd.a(localu);
      }
      localjd.a(localhb);
    }
    c localc = new c(localjd);
    if (localdc.g("SELECTION_ONLY"))
    {
      n localn = ke.d(e());
      e().a(hb.B, localn);
      a(localc);
      if (i != 0) {
        break label228;
      }
      e().j(hb.B);
      if (!f.o) {
        return;
      }
    }
    label228:
    a(localc);
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.g.u

 * JD-Core Version:    0.7.0.1

 */